package com.hc.trans;

import com.hc.domain.Category;
import com.hc.res.CategoryItem;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author hecai
 */
@Mapper
public interface CategoryTrans {
    CategoryTrans MAPPER = Mappers.getMapper(CategoryTrans.class);

    /**
     * @param categoryList
     * @return
     */
    List<CategoryItem> categoryList2categoryItemList(List<Category> categoryList);

    CategoryItem category2categoryItem(Category category);

}
